package com.sgj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sgj.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/**
 * @author 沈国纪
 * @date 2021/12/11 18:48
 */
public interface UserMapper extends BaseMapper<User> {

	@Select("select * from t_user where username = #{username}")
	User selectByName(@Param("username") String username);

	User findRolesByUserId(@Param("id") Integer id);
}